/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.techshop.dao;

import com.techshop.model.PhoneCode;
import java.util.List;

/**
 *
 * @author Hai-PC
 */
public interface PhoneCodeDao
{
    public PhoneCode getById(int phoneCodeId);
    public PhoneCode getByPhoneAndColor(int phoneId, String colorId);
    public List<PhoneCode> getByPhoneId(int phoneId);
    public List<PhoneCode> getAll();
    public List<PhoneCode> search(String name);
    public boolean insert(PhoneCode phoneCode);
    public boolean update(PhoneCode phoneCode);
    public boolean delete(PhoneCode phoneCode);
}